Learn R Programming

biofiles (version 1.0.0)

[[,gbFeature,character,missing-method: Method extensions to extraction operator for gbRecord objects.

Description

See the documentation for the Extract generic, defined in the R base-package for the expected behavior.

Usage

# S4 method for gbFeature,character,missing
[[(x, i, j)

# S4 method for gbFeature $(x, name)

# S4 method for gbFeatureTable,character,missing [(x, i, j, ..., drop = TRUE)

# S4 method for gbFeatureTable,numeric,missing [(x, i, j, ..., drop = TRUE)

# S4 method for gbFeatureTable,logical,missing [(x, i, j, ..., drop = TRUE)

# S4 method for gbFeatureTable,missing,missing [(x, i, j, ..., drop = TRUE)

# S4 method for gbFeatureTable,ANY,ANY [[(x, i, j, ...)

# S4 method for gbRecord,ANY,missing [(x, i, j, ..., drop = TRUE)

# S4 method for gbRecord,missing,missing [(x, i, j, ..., drop = TRUE)

# S4 method for gbRecord,ANY,ANY [[(x, i, j, ...)

Arguments

x

A '>gbFeature, '>gbFeatureTable, or '>gbRecord object.

i

indices specifying elements to extract. With gbFeatureTables and gbRecords, a character index is matched against feature keys; gbFeatures a character index is matched against qualifiers.

j

Not used.

name

The name of the element to extract.

...

Not used.

drop

Not used.

Value

A '>gbFeatureTable object or elements of a '>gbFeature object.

See Also

Extract

Examples

Run this code
# NOT RUN {
load(system.file("extdata", "marine_metagenome.rda", package = "biofiles"))

## Extract a gbFeatureTable from a gbRecord:
x[1:4]

## Extract a gbFeature
x[[1]]

## Extract ggFeatures by Feature Key
x["CDS"]

# }

Run the code above in your browser using DataLab